#!/bin/sh

ticket=$(git symbolic-ref HEAD | sed -n 's/.*-\([0-9]\)/\1/p')
if [ -n "$ticket" ]; then
    echo "ref #$ticket" >> $1
fi
